<h1>Listing book_instances</h1>

<table>
  <tr>
    <th>Book</th>
    <th>Status</th>
    <th>Note</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @book_instances.each do |book_instance| %>
  <tr>
    <td><%= book_instance.book_id %></td>
    <td><%= book_instance.status %></td>
    <td><%= book_instance.note %></td>
    <td><%= link_to 'Show', book_instance %></td>
    <td><%= link_to 'Edit', edit_book_instance_path(book_instance) %></td>
    <td><%= link_to 'Destroy', book_instance, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Book instance', new_book_instance_path %>
